package com.secsys.model;

import java.util.HashSet;
import java.util.Set;

/**
 * TbSysResource entity. @author MyEclipse Persistence Tools
 */

public class TbSysResource implements java.io.Serializable {

	// Fields

	private Integer id;
	private TbBbsModule tbBbsModule;
	private String menuName;
	private String sequenceNum;
	private String uri;
	private Set tbSysRoleResources = new HashSet(0);
	private String parentFlag;

	// Constructors

	public String getParentFlag() {
		return parentFlag;
	}

	public void setParentFlag(String parentFlag) {
		this.parentFlag = parentFlag;
	}

	/** default constructor */
	public TbSysResource() {
	}

	/** minimal constructor */
	public TbSysResource(String menuName, String sequenceNum) {
		this.menuName = menuName;
		this.sequenceNum = sequenceNum;
	}

	/** full constructor */
	public TbSysResource(TbBbsModule tbBbsModule, String menuName,
			String sequenceNum, String uri, Set tbSysRoleResources) {
		this.tbBbsModule = tbBbsModule;
		this.menuName = menuName;
		this.sequenceNum = sequenceNum;
		this.uri = uri;
		this.tbSysRoleResources = tbSysRoleResources;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public TbBbsModule getTbBbsModule() {
		return this.tbBbsModule;
	}

	public void setTbBbsModule(TbBbsModule tbBbsModule) {
		this.tbBbsModule = tbBbsModule;
	}

	public String getMenuName() {
		return this.menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public String getSequenceNum() {
		return this.sequenceNum;
	}

	public void setSequenceNum(String sequenceNum) {
		this.sequenceNum = sequenceNum;
	}

	public String getUri() {
		return this.uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public Set getTbSysRoleResources() {
		return this.tbSysRoleResources;
	}

	public void setTbSysRoleResources(Set tbSysRoleResources) {
		this.tbSysRoleResources = tbSysRoleResources;
	}

}